<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <!--适应移动端-->
    <meta name="viewport" content="width=device-width,initial-scale=1.0 ">
    <title>巨人的风车-登录主页</title>
    <link rel="stylesheet" th:href="@{/Semantic-UI-2.4.1/dist/semantic.min.css}">
    <link rel="stylesheet" th:href="@{/css/me.css}">
    <!--图标-->
    <link rel='stylesheet prefetch' href='https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.4.1/components/icon.min.css'>
</head>
<body>
<!--导航-->
 <nav class="ui inverted attached segment m-padded-tb-mini m-shadow-small ">
     <div class="ui container">
         <div class="ui inverted secondary stackable menu">
             <h2 class="ui teal header item">管理后台</h2>
             <a th:href="@{/admin/blog}" class="m-item item m-mobile-hide"><i class="home icon"></i>博客</a>
             <a th:href="@{/admin/types}" class="m-item item m-mobile-hide"><i class="idea icon"></i>分类</a>
             <a th:href="@{/admin/tags}" class="m-item item m-mobile-hide"><i class="tags icon"></i>标签</a>
             <a th:href="@{/admin/pinglun}" class="m-item item m-mobile-hide"><i class="tags icon"></i>评论</a>
             <div class="right m-item m-mobile-hide menu">
                 <div class="ui dropdown item">
                     <div class="text">
                         <img th:src="${session.user.picture}" alt="" class="ui avatar image">
                         <span th:text="${session.user.getNickName()}"></span>
                     </div>
                     <i class="dropdown icon"></i>
                     <div class="menu">
                         <a th:href="@{/admin/logout}" class="item">注销</a>
                     </div>
                 </div>
             </div>
<!--             <div class="right m-item item m-mobile-hide">-->
<!--                <div class="ui icon inverted transparent input">-->
<!--                    <input type="text" placeholder="Search...">-->
<!--                    <i class="search icon"></i>-->
<!--                </div>-->
<!--             </div>-->
         </div>
     </div>
     <a href="#" class="ui menu toggle black icon button m-right-top m-mobile-show">
         <i class="sidebar icon"></i>
     </a>
     <!--引入隐藏背景资源-->
     <img th:src="@{/images/beijing.jpg}" class="m-hidden" alt="">
 </nav>

<!--中间内容-->
 <div class="m-container-small m-padded-tb-big">
        <div class="ui container">
            <div class="ui success large message">
                <h3>Hi,</h3>
                <span th:text="${session.user.nickName}"></span>
                <p>欢迎登录！</p>
            </div>
            <img th:src="@{/images/ren.jpg}" alt="" class="ui rounded bordered fluid image">
        </div>
 </div>

<!--底部footer-->
<footer class="ui inverted vertical segment m-padded-tb-massive">
    <div class="ui center aligned container">
        <div class="ui inverted divided stackable grid">
            <div class="three wide column">
                <h4 class="ui inverted header m-text-thin m-text-spaced  m-opacity-mini">海天梦离</h4>
                <div class="ui inverted link list">
                    <div class="item">
                        <img th:src="@{/images/picfooter.png}" class="ui rounded image" alt="" style="width: 110px">
                    </div>
                </div>
            </div>
            <div class="three wide column">
                <h4 class="ui inverted header m-text-thin m-text-spaced  m-opacity-mini">最新博客</h4>
                <div id="newBlog-container">
                    <div class="ui inverted link list" th:fragment="newBlogList">
                        <a href="#" th:href="@{/blog/{id}(id=${blog.id})}" target="_blank" class="item m-text-lined" th:each="blog:${newblogs}" th:text="${blog.title}">用户故事</a>
                    </div>
                </div>

            </div>
            <div class="three wide column">
                <h4 class="ui inverted header m-text-thin m-text-spaced  m-opacity-mini">联系我</h4>
                <div class="ui inverted link list">
                    <p href="#" class="item m-text-lined" th:text="#{qq}">QQ:1965411732</p>
                    <p href="#" class="item m-text-lined" th:text="#{email}">email:1965411732@qq.com</p>
                    <a href="https://gitee.com/Azenghaojie/myblogs/tree/master"  class="item m-text-lined" >前往git开源仓库</a>
                </div>
            </div>
            <div class="seven wide column">
                <h4 class="ui inverted header m-text-thin m-text-spaced  m-opacity-mini">博客</h4>
                <p class="m-text-thin m-text-spaced m-opacity-mini" th:text="#{info}">此博客为Dreamchaser追梦的个人博客。在这里，记录了我的技术博客，记录了我的经 验分享，也记录了我生活的点滴，记录了我的成长。我特别喜欢一个词，那就是"追梦"，这也是我昵称的由来，同时也是我和我的团队筹备的一款app的名字 。人生在世，必然会有自己的梦想，不论这个梦想是大是小，是遥不可及还是触手可得，你所要坚信的便只有一件事——有梦便一定要去追，我们都该是追梦人！不论现在处境如何，我们都要去拼一拼，不试怎么知道你会不会成功呢？愿大家都能以梦为马，不负青春韶华！</p>
            </div>
        </div>
        <div class="ui inverted section divider"> </div>
        <p class="m-text-thin m-text-spaced m-opacity-mini">Copyright © 2022 杰</p>
        <br>
        <a href="https://beian.miit.gov.cn/" target="_blank">渝ICP备2025066220号-1</a>
    </div>
</footer>

<script th:src="@{/js/jquery-3.5.1.min.js}"></script>
<script th:src="@{/Semantic-UI-2.4.1/dist/semantic.min.js}"></script>
<script>
    $('#newBlog-container').load(/*[[@{/footer/newBlog}]]*/"/footer/newBlog");
</script>
<script>
    $('.menu.toggle').click(function () {
        $('.m-item').toggleClass('m-mobile-hide');
    });
    $('.ui.dropdown').dropdown({
        on:'hover'
    })
</script>
</body>
</html>
